package cc.comac.mom.api;

import java.util.List;

import cc.comac.mom.entity.EquipPatrolCheckPlanEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import cc.comac.mom.bean.EquipPatrolCheckPlan;
import cc.comac.mom.bean.EquipPatrolCheckPlanBean;
import cc.comac.mom.util.ResultBean;

@FeignClient(name = "mom-equipment-mgmt-srv")
public interface EquipPatrolCheckPlanService {
	@RequestMapping(value = "/p/cs/EquipPatrolCheckPlanService/insert",method = RequestMethod.POST)
	public ResultBean insert(@RequestBody EquipPatrolCheckPlan obj);

	@RequestMapping(value = "/p/cs/EquipPatrolCheckPlanService/delete",method = RequestMethod.POST)
	public ResultBean delete(@RequestBody List<EquipPatrolCheckPlan> obj);
	
	@RequestMapping(value = "/p/cs/EquipPatrolCheckPlanService/update",method = RequestMethod.POST)
	public ResultBean update(@RequestBody EquipPatrolCheckPlan obj);
	
	//发布
	@RequestMapping(value = "/p/cs/EquipPatrolCheckPlanService/planIssue",method = RequestMethod.POST)
	public ResultBean planIssue(@RequestBody List<EquipPatrolCheckPlanEntity> list) ;
	
	@RequestMapping(value = "/p/cs/EquipPatrolCheckPlanService/selectByFields",method = RequestMethod.POST)
	public ResultBean selectByFields(@RequestBody EquipPatrolCheckPlanBean obj);
}
